﻿using System;
using Mbs;
using Mbs.Modularity;
using Mbs.Windows;

namespace MessageBus.Threads.Module
{
    public class ModuleStarter : ModuleActivator//<IThreadPresenter>
    {
        public override void Start()
        {
            base.Start();
            
            Disposes.Add(CommandNames.ThreadTest.Subscribe<EventArgs>((s, e) => Workspace.Get(WorkspaceNames.Main).Show(Locator.Get<IThreadPresenter>().View)));
        }
    }

    public class CommandNames : Mbs.SystemCommands
    {
        public const string ThreadTest = "ThreadTest";
        public const string RunThread = "RunThread";
    }


    public class WorkspaceNames
    {
        public const string Main = "MainWorkSpace";
    }

}
